package aimis.dto.form;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.HashSet;
import java.util.Set;

@Data
public class RoleForm {
    @NotNull(groups = {EditRole.class, DeleteRole.class})
    private Long id;
    @NotBlank(groups = {EditRole.class, AddRole.class})
    private String name;
    private String description;
    private Set<Long> authorityIds = new HashSet<>();

    public interface DeleteRole {
    }

    public interface EditRole {
    }

    public interface AddRole {
    }
}

